import { lazy } from "react";

import { RouterConfig } from "../utils/types";


const routerConfig:RouterConfig = {
    mode:"history",
    routes:[
        {
            path:"/",
            redirect:"/login"
        },
        {
            path:'/login',
            name:"login",
            component:lazy(() => import("../pages/login"))
        },
        {
            path:'/home',
            name:"home",
            component:lazy(() => import("../pages/home"))
        },
        {
            path:'*',
            name:"notFound",
            component:lazy(() => import("../pages/notFound"))
        },
    ]
};


export default routerConfig;








